package com.ruoyi.core.service;

import com.ruoyi.core.domain.MsgReplyRule;
import com.ruoyi.core.domain.vo.MsgReplyRuleVo;
import com.ruoyi.core.domain.bo.MsgReplyRuleBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 自动回复规则Service接口
 *
 * @author ztx
 * @date 2023-04-10
 */
public interface IMsgReplyRuleService {

    /**
     * 查询自动回复规则
     */
    MsgReplyRuleVo queryById(Long id);

    /**
     * 查询自动回复规则列表
     */
    TableDataInfo<MsgReplyRuleVo> queryPageList(MsgReplyRuleBo bo, PageQuery pageQuery);

    /**
     * 查询自动回复规则列表
     */
    List<MsgReplyRuleVo> queryList(MsgReplyRuleBo bo);

    /**
     * 新增自动回复规则
     */
    Boolean insertByBo(MsgReplyRuleBo bo);

    /**
     * 修改自动回复规则
     */
    Boolean updateByBo(MsgReplyRuleBo bo);

    /**
     * 校验并批量删除自动回复规则信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<MsgReplyRule> getMatchedRules(String appid, boolean exactMatch, String keywords);
}
